import request from '@/utils/request'
import Cookies from 'js-cookie'
export function getBrandList(data) {
    return request({
        url: '/General/get_brand_second',
        method: 'post',
        data: data
    })
}
// 获取门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
// 列表
export function getList(data, page) {
    return request({
        url: '/Statistic_brand_qr/order_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 获取分页
export function getPage(data) {
    return request({
        url: '/Statistic_brand_qr/order_page',
        method: 'post',
        data: data
    })
}
// 保存备注
export function save(data) {
    return request({
        url: '/Statistic_brand_qr/order_remark_edit',
        method: 'post',
        data: data
    })
}
// 导出
export function getExport(data) {
    window.location.href = `https://${location.host}/smsi/index.php/Statistic_brand_qr/get_refund_csv?store_id=${data.store_id}&start_time=${data.start_time}&end_time=${data.end_time}&pay_way=${data.pay_way}&didixueshengka=${Cookies.get('SMS_AdminToken')}`; 
}